package com.whz.mlc.provider;

import com.whz.generic.cache.CaffeineConfig;
import com.whz.mlc.cache.second.redis.RedisConfig;
import com.whz.mlc.hotkey.HotKeyProperty;
import lombok.Data;

/**
 * mlc 缓存配置
 */
@Data
public class MlcCacheProperty {

    /**
     * 一级缓存配置
     */
    private CaffeineConfig caffeineConfig = new CaffeineConfig();

    /**
     * 二级缓存热点统计配置
     */
    private HotKeyProperty hotKeyProperty = HotKeyProperty.builder().build();

    /**
     * 二级缓存配置
     */
    private RedisConfig redisConfig = new RedisConfig();


    /**
     * 是否开启一二级缓存比对
     */
    private boolean enableLocalCacheCompare;
}